/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package umis2.vista;

import java.util.List;
import umis2.controladorcentral.Forma;
import umis2.nivel.Nivel;
import umis2.nivel.ProxySync;

/**
 *
 * @author djphilomath
 */
public class Vista {

    private static AppUmis panel;
    public static Nivel nivel;
    public static ProxySync proxy;

    public static Vista getInstance() {
        return VistaHolder.INSTANCE;
    }

    private static class VistaHolder {
        private static final Vista INSTANCE = new Vista();
    }

    public static ProxySync getProxy() {
        return proxy;
    }

    public static void setProxy(ProxySync proxy) {
        Vista.proxy = proxy;
    }

    public static void setFormas(List<Forma> formas) {
        //TODO: encapsular la lista de formas... mantenimiento
         panel.setFormas(formas); 
    }

    public static AppUmis getPanel() { return Vista.panel; }

    public static void setPanel(AppUmis panel) { Vista.panel = panel; }

    public static Nivel getNivel() {
        return nivel;
    }

    public static void setNivel(Nivel nivel) {
        Vista.nivel = nivel;
    }

}
